const { fork } = require('child_process')
const modifyFile = fork('../src/modifyFile.js')

// modifyFile.send('modifyFile a.txt -n abc')
// modifyFile.send('modifyFile abc.txt -c abc')
modifyFile.send('modifyFile abc.txt -a def')

modifyFile.on('message', data => {
  console.log(data);
  process.exit(0)
})